package com.tuanzi.loan.web.bean.statistics;

import static com.tuanzi.loan.business.constants.DictionaryCode.EXTERNAL_LOAN_AREA_PRODUCT;

import java.util.List;

import javax.annotation.PostConstruct;
import javax.faces.bean.ViewScoped;

import org.springframework.stereotype.Component;

import com.google.common.collect.Lists;
import com.tuanzi.loan.core.aspect.Debug;
import com.tuanzi.loan.vo.request.statistics.ExternalLoanAreaStatistisRequest;
import com.tuanzi.loan.vo.response.statistics.ExternalLoanAreaStatistisResponse;
import com.tuanzi.loan.web.configuration.JSFListingBean;
import com.tuanzi.loan.web.lazy.statistics.ExternalLoanAreaStatistisLazyDataModel;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 外部融合页贷款专区统计
* @author chenweijun 
* @version 2018年4月24日
*/
@Data
@Debug
@Component
@ViewScoped
@EqualsAndHashCode(callSuper = true)
public class ExternalLoanAreaStatistsBean extends JSFListingBean<ExternalLoanAreaStatistisRequest, ExternalLoanAreaStatistisResponse> {
	
	private static final long serialVersionUID = -7322476114577563289L;
	
	@PostConstruct
	private void init() {
		initLazyDataModel();
	}
	
	private void initLazyDataModel() {
		$ = new ExternalLoanAreaStatistisRequest();
		lazyDataModel = new ExternalLoanAreaStatistisLazyDataModel($);
	}
	
	@Override
	protected List<String> getDictionaryCodes() {
		return Lists.newArrayList(EXTERNAL_LOAN_AREA_PRODUCT);
	}

}
